package booksys.home;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface HomeDao {

    @Select("select ma_id,ma_name,ma_avatar from manager where ma_id = #{id}")
    Manager findManagerById(String userId);

    @Update("update manager set ma_avatar = #{avatar} where ma_id = #{uid}")
    void updateAvatar(@Param("uid") String userId, @Param("avatar") String filename);
}
